package com.sparrow.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 
 *@Description: Web层实现请求映射
 * 				/：映射到index.html
 * 				/welcome：映射到welcome.html
 *@Author:hjt 
 *@Since:2017年4月7日 
 *@Version:1.0.0
 */
@Controller
public class LoginController {

	@RequestMapping("/login")
    public String login() {
        return "login";
    }
	
	@RequestMapping("/")
    public String index(ModelMap map) {
        map.addAttribute("host", "http://git.oschina.net/mahout/sparrow");
        return "index";
    }
	
	@RequestMapping("/welcome")
    public String welcome() {
        return "welcome";
    }
}
